package functii.elementare;

import Interpretor.Context;
import arbori.Nod;
import functii.Functie;

public class Constanta extends Nod {

	protected double ct;

	public Constanta(double ct) {
		this.ct = ct;
	}
	public Constanta()
	{
		
	}
	public double getCt() {
		return ct;
	}
	
	public void setCt(double ct) {
		this.ct = ct;
	}
	public void interpret(Context cont) {
		cont.actual(this);
	}
	
/*
	public double calcul() {
		return this.ct;
	}

	public double calculDerivata() {
		return 0;
	}

	public String derivare() {
		return "0";
	}

	public String toString() {
		if (Math.ceil(ct) == ct)
			return String.valueOf((int) ct);
		return String.valueOf(ct);
	}
*/

}
